package file;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-08-07
 * Time: 15:37
 */
//字符流写数据
public class Demo11 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("./test1.txt")) {
            writer.write("STTTTSS");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
